//
//  DisShopSecondTableViewCell.m
//  陶瓷
//
//  Created by 郭天龙 on 15/8/3.
//  Copyright (c) 2015年 王戈. All rights reserved.
//

#import "DisShopSecondTableViewCell.h"

@interface DisShopSecondTableViewCell ()

@property (nonatomic, weak) IBOutlet UILabel *label1;
@property (nonatomic, weak) IBOutlet UILabel *label2;
@property (nonatomic, weak) IBOutlet UILabel *label3;
@property (nonatomic, weak) IBOutlet UILabel *label4;
@property (nonatomic, weak) IBOutlet UILabel *label5;
@property (nonatomic, weak) IBOutlet UILabel *label6;
@property (nonatomic, weak) IBOutlet UILabel *label7;
@property (nonatomic, weak) IBOutlet UILabel *label8;

@end

@implementation DisShopSecondTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(NSDictionary *)dic
{
    self.label1.text = [dic objectForKey:@"Price"];
    self.label2.text = [dic objectForKey:@"Area"];
    self.label3.text = [dic objectForKey:@"Type"];
    self.label4.text = [dic objectForKey:@"Histroy"];
    self.label5.text = [dic objectForKey:@"Address"];
    self.label6.text = [dic objectForKey:@"Description"];
    
//     在这里加上联系电话和联系人
    NSObject *contractNumber = [dic objectForKey:@"ContactNumber"];
    if (contractNumber && ![contractNumber isKindOfClass:[NSNull class]]) {

        self.label7.text = [NSString stringWithFormat:@"%@",contractNumber];
    }else
    {
        self.label7.text = @" ";
    }
    
    
    NSObject *LinkMan = [dic objectForKey:@"LinkMan"];
    if (LinkMan && ![LinkMan isKindOfClass:[NSNull class]]) {
        
        self.label8.text = [NSString stringWithFormat:@"%@",LinkMan];
    }else
    {
        self.label8.text = @" ";
    }
    
    
//    self.region.text = [NSString stringWithFormat:@"%@㎡",[dic objectForKey:@"Price"]];
//    self.area.text = [dic objectForKey:@"Area"];
//    self.cate.text = [dic objectForKey:@"Type"];
//    self.history.text = [dic objectForKey:@"Histroy"];
//    self.near.text = [dic objectForKey:@"Address"];
}

@end
